package com.imti.mall.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imti.mall.model.pms.pojo.PmsProductAttribute;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PmsProductAttributeMapper extends BaseMapper<PmsProductAttribute> {

    @Select("select id,product_attribute_category_id,name,select_type,input_type,input_list,sort,filter_type,search_type,related_status,hand_add_status,type  from pms_product_attribute where type=0 and product_attribute_category_id=#{productAttributeCategoryId}")
    List<PmsProductAttribute> findPmsProductAttribute(Long productAttributeCategoryId);
}
